package com.yanqu.road.entity.log;

import com.yanqu.road.entity.FieldTypeAnnotation;

import java.util.Date;

/**
 * 药铺：升级日志
 */
@FieldTypeAnnotation(tableName = "t_l_ck_drug_store_upgrade", desc = "药铺升级日志", autoSave = true, uploadCk = true)
public class LogDrugStoreUpgrade extends ServerBaseLog {

    @FieldTypeAnnotation(desc = "用户ID", isIndex = true)
    private long userId;

    @FieldTypeAnnotation(desc = "升级类型：1 徽章，2 工艺，3 处方")
    private int type;

    @FieldTypeAnnotation(desc = "对应id")
    private int objId;

    @FieldTypeAnnotation(desc = "升级前等级")
    private int beforeLv;

    @FieldTypeAnnotation(desc = "升级后等级")
    private int afterLv;

    @FieldTypeAnnotation(desc = "消耗")
    private String consume = "";

    public LogDrugStoreUpgrade(long userId, int type, int objId, int beforeLv, int afterLv, String consume) {
        this.userId = userId;
        this.type = type;
        this.objId = objId;
        this.beforeLv = beforeLv;
        this.afterLv = afterLv;
        this.consume = consume;
    }

    public long getUserId() {
        return userId;
    }

}
